package cn.wolfcode.sbgitflow.web.controller;

import cn.wolfcode.sbgitflow.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author zhenfeng
 * @Date 2021/5/28
 */
@RestController
public class LoginController {

    @Autowired
    private IUserService userService;

    @RequestMapping("/login")
    public void login(String usernamre, String password){
        userService.login(usernamre, password);
    }
}
